package com.example.promethues.dto;

import java.util.List;
import java.util.Map;

/**
 * 表达式查询结果格式类<br/>
 * resultType=metric范围向量，相应的result返回格式:<br/>
 *   &nbsp; &nbsp;[{<br/>
 *       &nbsp; &nbsp;&nbsp; &nbsp;"metric": { "&lt;label_name&gt;": "&lt;label_value&gt;", ... },<br/>
 *       &nbsp; &nbsp;&nbsp; &nbsp;"values": [ [ &lt;unix_time&gt;, "&lt;sample_value&gt;" ], ... ]<br/>
 *    &nbsp; &nbsp;},...]<br/>
 * resultType=vector即时向量，相应的result返回格式:<br/>
 *   &nbsp; &nbsp;[{<br/>
 *     &nbsp; &nbsp;&nbsp; &nbsp;"metric": { "&lt;label_name&gt;": "&lt;label_value&gt;", ... },<br/>
 *     &nbsp; &nbsp;&nbsp; &nbsp;"value": [ &lt;unix_time&gt;, "&lt;sample_value&gt;" ]<br/>
 *   &nbsp; &nbsp;},...]<br/>
 * resultType=scalar标量，相应的result返回格式:<br/>
 *   &nbsp; &nbsp;[ &lt;unix_time/&gt;, "&lt;scalar_value/&gt;" ]<br/>
 * resultType=string 相应的result返回格式:<br/>
 *   &nbsp; &nbsp;[ &lt;unix_time\&gt;, "/&lt;string_value/&gt;" ]<br/>
 */
public class PromApiData {

    /** 返回类型："matrix" | "vector" | "scalar" | "string"<br/>*/
    private String resultType;

    /** 返回结果 */
    private List<Map<Object,Object>> result;

    public String getResultType() {
        return resultType;
    }

    public void setResultType(String resultType) {
        this.resultType = resultType;
    }

    public List<Map<Object, Object>> getResult() {
        return result;
    }

    public void setResult(List<Map<Object, Object>> result) {
        this.result = result;
    }
}